Skip to main content

Import

Usage

Return Type: SequenceMetadata

The hook returns a configured instance of the SequenceMetadata client. Here’s the detailed structure:

Available Methods

Service Methods

  • ping: Check service availability
  • version: Get metadata service version information
  • runtimeStatus: Get current runtime status of the service

Task Management Methods

  • getTask: Get details of a specific task
  • getTaskStatus: Get status of a task

Token Metadata Methods

  • getTokenMetadata: Fetch metadata for specific tokens
  • getTokenMetadataBatch: Batch fetch token metadata
  • searchTokenMetadata: Search through token metadata
  • searchTokenIDs: Search for specific token IDs
  • tokenCollectionFilters: Get available filters for token collections

Token Refresh Methods

  • refreshTokenMetadata: Refresh metadata for specific tokens
  • enqueueTokensForRefresh: Queue tokens for metadata refresh
  • getTokenRefreshStatus: Check status of token refresh
  • getTokenRefreshResult: Get results of token refresh
  • cancelRefreshJob: Cancel an ongoing refresh job

Contract Methods

  • getContractInfo: Fetch metadata for a single contract
  • getContractInfoBatch: Batch fetch contract metadata
  • searchContractInfo: Search through contract metadata
  • searchContractInfoBatch: Batch search contract metadata
  • refreshContractInfo: Refresh contract metadata
  • refreshContractTokens: Refresh tokens for a contract
  • refreshAllContractTokens: Refresh all tokens for a contract

Search Methods

  • searchMetadata: Search through all metadata
  • searchTokens: Search for specific tokens
  • searchContracts: Search for specific contracts

Niftyswap Methods

  • getNiftyswapTokenQuantity: Get token quantity information from Niftyswap
  • getNiftyswapUnitPrices: Get unit prices from Niftyswap
  • getNiftyswapUnitPricesWithQuantities: Get unit prices with quantities from Niftyswap

Mint Monitor Methods

  • addContractToMintMonitor: Add contract to mint monitoring
  • removeContractFromMintMonitor: Remove contract from mint monitoring
  • mintMonitorJobStatus: Check status of mint monitoring job
  • mintMonitorTriggerJob: Trigger a mint monitoring job

Contract Sync Methods

  • syncContractTokens: Sync tokens for a contract
  • abortContractSync: Abort an ongoing contract sync
  • contractSyncJobStatus: Check status of contract sync

Directory Methods

  • directoryGetNetworks: Get available networks
  • directoryGetCollections: Get collections directory
  • directorySearchCollections: Search through collections directory

Parameters

The hook doesn’t accept any parameters but uses configuration from the useConfig hook:
The configuration determines:
  • The metadata service URL
  • Your project’s access key for authentication
  • Optional JWT for authenticated requests
The client is memoized based on the projectAccessKey and jwt to prevent unnecessary re-instantiation.